
        <!-- 内容区域 -->
        <div class="tpl-content-wrapper">
            <div class="row-content am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl">{$title}</div>
                                <div class="widget-function am-fr">
                                    <a href="javascript:;" class="am-icon-cog"></a>
                                </div>
                            </div>
                            <div class="widget-body am-fr">

                                <form class="am-form tpl-form-line-form" method="post" action="{:U('add')}">
                                    <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-3 am-form-label">所属菜单栏<span class="tpl-form-line-small-title"></span></label>
                                        <div class="am-u-sm-9">
                                            <select name="pid" data-am-selected="{searchBox: {$one.pid}}">
                                                <option value="{$home_pid}">顶级菜单栏</option>
                                                <volist name="column_arr" id="v">
                                                    <php>
                                                        //当循环 的id 等于 当前id的时候 做1标记 记录等级
                                                        //开始标记
                                                        if($v['id'] == $one['id']){
                                                        $rr['level'] = $v['level'];
                                                        }
                                                    </php>
                                                    <php>
                                                        if(!empty($rr['level']) && $v['level'] == $rr['level'] && $v['id'] != $one['id']){
                                                        //什么时候结束标记
                                                        //当你有标记的时候 且 等级一致 且循环id 不等于 当前id
                                                        unset($rr);
                                                        }
                                                        if(empty($rr['level'])){
                                                        //说明时候循环 没rr标记的时候循环输出
                                                    </php>
                                                    <option <eq name="one.pid" value="$v.id">selected</eq> value="{$v.id}"><for start="0" end="$v.level">|--</for>{$v.name}</option>
                                                    <php>
                                                        }
                                                    </php>
                                                </volist>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="am-form-group">
                                        <label for="user-name" class="am-u-sm-3 am-form-label">菜单栏名称<span class="tpl-form-line-small-title"></span></label>
                                        <div class="am-u-sm-9">
                                            <input name="name" type="text" class="tpl-form-input" id="user-name" placeholder="请填写菜单栏名称">
                                            <small>20字之内</small>
                                        </div>
                                    </div>

                                    <div class="am-form-group">
                                        <label for="user-name" class="am-u-sm-3 am-form-label">菜单栏路径<span class="tpl-form-line-small-title"></span></label>
                                        <div class="am-u-sm-9">
                                            <input name="url" type="text" class="tpl-form-input" id="user-name"  placeholder="请输入菜单栏路径">
                                            <small>例：Admin/Index/index 或 Index/index</small>
                                        </div>
                                    </div>

                                    <div class="am-form-group">
                                        <label for="user-name" class="am-u-sm-3 am-form-label">排序 <span class="tpl-form-line-small-title"></span></label>
                                        <div class="am-u-sm-9">
                                            <input name="sort" type="text" class="tpl-form-input" id="user-name"   placeholder="请输入排序">
                                            <small>排序越小越优先,默认0</small>
                                        </div>
                                    </div>

                                    <div class="am-form-group">
                                        <label for="user-intro" class="am-u-sm-3 am-form-label">是否显示</label>
                                        <div class="am-u-sm-9">
                                            <div class="tpl-switch">
                                                <input type="checkbox" name="is_show" class="ios-switch bigswitch tpl-switch-btn" <notempty name="one.is_show">checked</notempty><notpresent name="one.is_show">checked</notpresent> value="1" />
                                                <div class="tpl-switch-btn-view">
                                                    <div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>


                                    <div class="am-form-group">
                                        <label for="user-intro" class="am-u-sm-3 am-form-label">是否新标签打开</label>
                                        <div class="am-u-sm-9">
                                            <div class="tpl-switch">
                                                <input type="checkbox" name="is_blank" class="ios-switch bigswitch tpl-switch-btn" value="1" <notempty name="one.is_blank">checked</notempty>/>
                                                <div class="tpl-switch-btn-view">
                                                    <div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>



                                    <div class="am-form-group">
                                        <div  class="am-u-sm-9 am-u-sm-push-3">
                                            <input type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success">
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
